/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package STUDENT.NGUYENSANG.OOPs.munsach;

/**
 *
 * @author NSPDL
 */
import java.util.List;
import java.util.ArrayList;
import java.util.Scanner;
public class NhapBanDoc {
    static Scanner input=new Scanner(System.in);
     static Scanner input1=new Scanner(System.in);
    static List<BanDoc> BD =new ArrayList<>();
    public BanDoc newBD()
    {
        BanDoc bd=null;
        System.out.println("Nhap ten: "); String ten=input.nextLine();
        System.out.println("Nhapso dien thoai : "); long sdt=input.nextLong();
        System.out.println("Nhap dia chi: "); String diachi=input1.nextLine();
        int ma=BD.size()+100;
        bd= new BanDoc(ma, ten, diachi, sdt);
        return bd;
    }
    public void themBanDoc()
    {
        BanDoc bd=newBD();
        if(bd!=null)
        {
            BD.add(bd);
        }
    }
}
